Skip to content

Syncing from upstream OCA/server-env (16.0) - #277

Merged
bt-admin merged 6 commits into
brain-tec:16.0from
OCA:16.0
Aug 24, 2026
Merged

Syncing from upstream OCA/server-env (16.0)#277
bt-admin merged 6 commits into
brain-tec:16.0from
OCA:16.0

Conversation

@bt-admin

Copy link
Copy Markdown

bt_gitbot

mymage and others added 6 commits August 24, 2026 08:46
Currently translated at 100.0% (110 of 110 strings)

Translation: server-env-16.0/server-env-16.0-server_environment
Translate-URL: https://translation.odoo-community.org/projects/server-env-16-0/server-env-16-0-server_environment/it/
Add a helper to manage the restoring of the database columns when a
module using `server_environment` is uninstalled or the dependency on
`server_environment` is dropped.

Document how to use the helper in an uninstall script or in an upgrade
script (if a new version of the addon drops the dependency).
Helper function typically used for hooks and migration scripts.
Restores database values for fields transitioning to 'server env managed'.

When a field is defined as managed by the server environment, Odoo
ignores the value stored in the database, prioritizing the environment
configuration instead. If no environment configuration exists, the field
may effectively lose its previous value.

This method forces to 'persist' these values if they are not
explicitly overridden by the current environment configuration.
…cation"

To preserve the value of field "smtp_authentication" if we don't set it from
the environment.
Which may happen to anyone updating the sources of mail_environment for its project.
Signed-off-by simahawk
@bt-admin bt-admin added the 16.0 label Aug 24, 2026
@bt-admin
bt-admin merged commit 905b5ae into brain-tec:16.0 Aug 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants